"""
@作者 = "陈诗"
@email = 3168157154@qq.com
@creative_time = 2025/10/26 16:47
"""
import random
# 0.1毫米的纸跌多少次能到达珠峰高度?
height_zhu = 8848000  # (mm)
a = 0.1
n = 0
d = a * n
while d <= height_zhu:
    n += 1
    a *= n
print(n)


# return用法
def fil(a, d):
    return a*d  # 在定义函数后必须要用return返回值,否则报错


fil(4, 6)
c = fil(4, 6)
print(fil(4, 6))
print(c)


# 结算画面(?
# 打包成元组*
def diaochayuan(name, *count):
    a = sum(count)
    print(f"调查员{name}已击杀{a}只飞天水螅")


diaochayuan('illusion', 1, 1, 5)


# 字典与set
dict0 = {"月亮": "moon", "你好": "Hallo", "月亮": "luna", "露娜": "luna"}
print(set(dict0))  # 生成集合并且*合并*输出键
print(dict0)  # 输出所有键值对
print(dict0.values())  # 输出值.若有重复的键,则输出后面的;值可以重复
print(dict0.keys())
print(dict0.items())  # 输出所有键值对,
print(set(dict0.keys()))  # 合并输出键
print(set(dict0.items()))  # 合并输出键值对.若有重复,只输出后面的
pass
pass
pass
print(type(dict0.keys()))


# 打包变成字典**
def dict1(**shenme):
    print(shenme)


def dict0(*haha):
    print(haha)


dict1(a=1, b=2)
dict0(1, 'a', 2, 3)

print('haha'.zfill(9))

# 随机数取小数点后几位
a = random.random()
print(round(a, 4))
